package com.example.zaq.dao;

import com.example.zaq.model.AspCalendar;
import com.example.zaq.model.AspSelectMonth;
import com.example.zaq.model.Summary;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//20210601  zaq  引入，实现查方法
//20210602  zaq  实现增加删除修改方法
//20210603  zaq  实现按天查询
//20210604  zaq  查询本月收支、说说、日程数量信息图表

@Repository
@Mapper
public interface AspCalendarDao {
    List<AspSelectMonth> select(AspCalendar record);
    //    按天查询
    List<AspCalendar> selectDay(AspCalendar record);
//    按月查询
    List<AspCalendar> selectMonth(AspCalendar record);

    List<Summary> selectSummary (AspCalendar record);

    int deleteByPrimaryKey(Integer cId);

    AspCalendar insert(AspCalendar record);

    AspCalendar update(AspCalendar record);

    AspCalendar delete(AspCalendar record);

    int insertSelective(AspCalendar record);

    AspCalendar selectByPrimaryKey(Integer cId);

    int updateByPrimaryKeySelective(AspCalendar record);

    int updateByPrimaryKey(AspCalendar record);
}